<template>
	<view v-if="isVerify" class="not-open">
		该功能暂未开通
	</view>
	<view v-else class="main-box">
		<!-- <view class="item" @click="openPluginPage('plugin://keepPlugin/lbk_ljj')">
			龙宝卡立减金插件</view>
		<view class="item"
			@click="openUrl('https://h5.syhy123.com/receive/#/?pagePath=pages%2Flbk_tcq%2Flbk_tcq&a=123aaa')">
			龙宝卡立减金H5跳转小程序</view> -->
		
			
			<view class="" style="height: 200rpx;" ken>
					<lbk onGoto="onGoto"  />
			</view>
				
				
				 
		
		
	</view>
</template>

<script>
	import zfbUrlUtil from "../../utils/zfbUrlUtil";
	import commomApi from "@/api/commonApi.js"
	const keepPlugin = requirePlugin("keepPlugin");
	export default {
		data() {
			return {
				isVerify: false,
				shows:true
			}
		},
		onLoad(option) {
			
			commomApi.isVerify(res => {
				this.isVerify = res
				if (!this.isVerify) {
					keepPlugin.setA("123aaa");
					keepPlugin.setParam("123456");
					keepPlugin.setAppid("2021004115620105");
					keepPlugin.setOpenid('openid');
					console.log(keepPlugin.result)
					// uni.navigateTo({
					// 	url: 'plugin://keepPlugin/lbk_tcq'
					// })
				}

			})
		},
		onPageScroll(e) {},
		methods: {
			onGoto(e){
				console.log(e,99999)
				
			},
			openUrl(urlPage) {
				let url = zfbUrlUtil.wrapUrl(urlPage)
				my.ap.openURL({
					url: url,
					success: (res) => {
						console.log('openURL success', res)
					},
					fail: (err) => {
						console.log('openURL success', err)
					}
				});
			},
			/**
			 * 打开插件页面
			 * @param {Object} pagePath
			 */
			openPluginPage(pagePath) {
				uni.navigateTo({
					url: pagePath
				})
			},
		}
	}
</script>

<style lang="scss">
	.item {
		border: solid 1rpx black;
		text-align: center;
		height: 80rpx;
		line-height: 80rpx;
	}
</style>